/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   LookUpAndDown.h
 * Author: czq
 *
 * Created on March 27, 2018, 10:32 AM
 */

#ifndef LOOKUPANDDOWN_H
#define LOOKUPANDDOWN_H
option(LookUpAndDown, (float)(0.f)pan,(float)(0.38f)tilt)
{
    initial_state(lookUp)
    {
        transition
        {
            if (state_time > 1000)
                goto lookDown;
        }
        action
        {
            SetHeadPanTilt(pan,tilt,(float)(pi));
        }
    }
    
    state(lookDown)
    {
        transition
        {
            if (state_time > 1000)
                goto lookUp;
        }
        action
        {
             SetHeadPanTilt(pan,-tilt,(float)(pi));
        }
    }
}        



#endif /* LOOKUPANDDOWN_H */

